package com.fjh.mapper;

import com.fjh.domain.BusCustomer;
import com.fjh.dto.CustomDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusCustomerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BusCustomer record);

    int insertSelective(BusCustomer record);

    BusCustomer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BusCustomer record);

    int updateByPrimaryKey(BusCustomer record);

    /**
     * 分页查询
     * @param customDto
     * @return
     */
    List<BusCustomer> selectList(@Param("query") CustomDto customDto);

    /**
     * 批量的删除客户
     * @param ids
     * @return
     */
    int batchDelete(@Param("ids") Integer[] ids);

    /**
     * 使用idCard 查询客户
     * @param idCard
     * @return
     */
    BusCustomer selectByIdCard(String idCard);
}